import { TimeInfo } from "./TimeInfo";

export class TimeHelper {

    public static ClientNow(): number {
        return TimeInfo.Instance.ClientNow();
    }

    public static ClientNowSeconds(): number {
        return TimeHelper.ClientNow() / 1000;
    }

    public static DateTimeNow(): number {
        return Date.now();
    }

    public static ServerNow(): number {
        return TimeInfo.Instance.ServerNow();
    }


    public static ClientFrameTime(): number {
        return TimeInfo.Instance.ClientFrameTime();
    }

    public static ServerFrameTime(): number {
        return TimeInfo.Instance.ServerFrameTime();
    }

}